<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  <title>支付接口配置</title>
  <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  <link rel="stylesheet" href="../static/web/css/admin.css">
</head>
<style>
  .npvar {
    width: 90%
  }
</style>
<body>
  <center>
    <table width="98%" cellpadding="3" cellspacing="1" align="center" class="table maintable mt-3 mb-3">
      <tr>
        <td height="26" background="../static/web/img/tbg.gif" colspan="5" class="table table-borderless">
          <table width="100%" cellspacing="0" cellpadding="0">
            <tr>
              <td style="padding-left:10px">支付接口列表</td>
              <td align="right"><span><a href="https://www.dedebiz.com/help" target="_blank">[查看更多接口]</a></span>
              </td>
            </tr>
          </table>
        </td>
      </tr>
      <tr align="center" bgcolor="#F8FCF1" height="26">
        <td width="20%">支付方式</td>
        <td width="40%">描述</td>
        <td width="10%">排序</td>
        <td width="20%">管理</td>
      </tr>
      {dede:datalist empty='<tr><td colspan="4"><center>暂无内容</center></td></tr>'}
      <tr height="26" align="center" onmousemove="javascript:this.bgColor='#F8FCF1';" onmouseout="javascript:this.bgColor='#ffffff';">
        <td>{dede:field.name /}</td>
        <td align="left">{dede:field.description /}</td>
        <td>{dede:field.rank /}</td>
        <td>
          <?php
        if($fields['enabled'] == 0) {
        ?>
          <a class='btn btn-success btn-sm' href='sys_payment.php?dopost=install&pid={dede:field.id /}'>安装</a>
          <?php
        }
        if($fields['enabled'] == 1) {
        ?>
          <a class='btn btn-success btn-sm' href='sys_payment.php?dopost=install&pid={dede:field.id /}&pm=edit'>修改</a>
          <a class='btn btn-success btn-sm' href='sys_payment.php?dopost=uninstall&pid={dede:field.id /}'>删除</a>
          <?php
        }
        ?>
        </td>
      </tr>
      {/dede:datalist}
      <tr align="center" bgcolor="#f8f8f8" height="36">
        <td colspan="4">{dede:pagelist listsize='6'/}</td>
      </tr>
    </table>
    </td>
    </tr>
    </table>
  </center>
</body>
</html>